import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const waiting: AppRouteModule = {
  path: '/waiting',
  name: 'Waiting',
  component: LAYOUT,
  redirect: '/waiting/index',
  meta: {
    hideChildrenInMenu: true,
    icon: 'daichuli',
    title: t('routes.dashboard.waiting'),
    orderNo: 1000001,
  },
  children: [
    {
      path: 'index',
      name: 'daichuli',
      component: () => import('@/views/business/waiting/index.vue'),
      meta: {
        title: t('routes.dashboard.waiting'),
        icon: 'kaoheshouru2',
        hideMenu: true,
      },
    },
    {
      path: 'train-details',
      name: 'trainDetails',
      component: () => import('@/views/business/waiting/train-details.vue'),
      meta: {
        title: t('routes.dashboard.details'),
        hideTab: true,
        hideMenu: true,
        currentActiveMenu: '/waiting/index',
      },
    },
    {
      path: 'test-details',
      name: 'testDetails',
      component: () => import('@/views/business/waiting/test-details.vue'),
      meta: {
        title: t('routes.dashboard.details'),
        hideTab: true,
        hideMenu: true,
        currentActiveMenu: '/waiting/index',
      },
    },
  ],
};

export default waiting;
